import java.util.Scanner;

public class MethodLarger {
    public static void main(String[] args) {
        //定义范围
        int i1, i2;
        //接收输入
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入2个数");
        i1 = sc.nextInt();
        i2 = sc.nextInt();
        //调用方法
        System.out.println("较大值:" + getLarger(i1, i2));
    }


    public static int getLarger(int i,int j) {
        if(i > j){
            return i;
        }else return j;
    }
}
